﻿using Class01;
using System;

namespace XIANGMU
{
    class Program
    {
        static void Main(string[] args)
        {
            //用户类：
              //1、无参：            
            emp empyee1 = new emp();
            empyee1.Id = 2;
            empyee1.Name = "杨洋";
            empyee1.department = "明星部";
            empyee1.dy();
            //有参：
            emp empyee = new emp(10, "张一山", "娱乐");
            empyee.dy();

            //圆形面积：
            cc c = new cc();
            c.r = 2;
            c.Sculuer();

            //长方形面积：
            cc rec = new cc(3, 4);
            rec.Srectangle();

            //有参两个整数相加和:
            cc add = new cc(1, 1);
            add.sum();

            //有参求两个小数相加和:
            cc add1 = new cc(0.5, 0.1);
            add1.sum1();

            //有参字符串相加：
            cc add2 = new cc("公益", "街舞新风格");
            add2.sum2();


            //有参整数累加：
            Class1 add3 = new Class1(6);
            add3.accumulation();
        }
    }
}






